{extend name="main/main" /} {block name="main"}
<link rel="stylesheet" href="/skin/css/ztree/metro.css" type="text/css" media="all" />
<link rel="stylesheet" href="/skin/css/main/pop_goods.css" type="text/css" media="all" />
<div class="layui-form layui-form-pane">
    <div class="layui-row">
        <div class="layui-col-xs10" id="search_data">
            <div class="layui-row layui-col-space3">
                <div class="layui-col-xs4">
                    <div class="layui-form-item remove_margin reset_item">
                        <label class="layui-form-label">商品名称</label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input" id="s|name" placeholder="请输入商品名称" value="{$Think.get.name}">
                        </div>
                    </div>
                </div>
                <div class="layui-col-xs4">
                    <div class="layui-form-item remove_margin reset_item">
                        <label class="layui-form-label">条形码</label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input" id="s|code" placeholder="请输入条形码" value="{$Think.get.code}">
                        </div>
                    </div>
                </div>
                <div class="layui-col-xs4">
                    <div class="layui-form-item remove_margin reset_item">
                        <label class="layui-form-label">规格型号</label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input" id="s|spec" placeholder="请输入规格型号">
                        </div>
                    </div>
                </div>
        </div>
            <div class="layui-row layui-col-space3" show>
                <div class="layui-col-xs4">
                    <div class="layui-form-item remove_margin reset_item">
                        <label class="layui-form-label">商品分类</label>
                        <div class="layui-input-block">
                            <input type="text" id="s|class" placeholder="请选择商品分类" class="layui-input" onclick="show_ztree(this);" nod="">
            				<div class="ztree_box">
            					<ul id="s_goodsclass" class="ztree layui-anim layui-anim-upbit"></ul>
            				</div>
                        </div>
                    </div>
                </div>
                <div class="layui-col-xs4">
                    <div class="layui-form-item remove_margin reset_item">
                        <label class="layui-form-label">商品品牌</label>
                        <div class="layui-input-block">
                            <div id="s_brand" class="selectpage"></div>
                        </div>
                    </div>
                </div>
                <div class="layui-col-xs4">
                    <div class="layui-form-item remove_margin reset_item">
                        <label class="layui-form-label">商品单位</label>
                        <div class="layui-input-block">
                            <div id="s_unit" class="selectpage"></div>
                        </div>
                    </div>
                </div>
        </div>
            <div class="layui-row layui-col-space3" show>
                <div class="layui-col-xs4">
                    <div class="layui-form-item remove_margin reset_item">
                        <label class="layui-form-label">商品编号</label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input" id="s|number" placeholder="请输入商品编号">
                        </div>
                    </div>
                </div>
                <div class="layui-col-xs4">
                    <div class="layui-form-item remove_margin reset_item">
                        <label class="layui-form-label">商品货位</label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input" id="s|location" placeholder="请输入商品货位">
                        </div>
                    </div>
                </div>
                <div class="layui-col-xs4">
                    <div class="layui-form-item remove_margin reset_item">
                        <label class="layui-form-label">备注信息</label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input" id="s|data" placeholder="请输入备注信息">
                        </div>
                    </div>
                </div>
        </div>
        </div>
        <div class="layui-col-xs2 layui-btn-group btn_group_right">
            <button class="layui-btn layui-btn-primary" onclick="show_more_info(this);" more='0'><i class="layui-icon layui-icon-down"></i></button>
            <button class="layui-btn layui-btn-primary" onclick="search();"><i class="layui-icon layui-icon-search"></i></button>
        </div>
    </div>
</div>
<hr />
<div class="layui-row">
    <div class="layui-col-md12">
        <table id="data_table" lay-filter="table_main"></table>
    </div>
</div>
<script type="text/javascript" charset="utf-8">
    var hide_field='{$Think.get.hide_field|default=""}';
    var formfield=hidelayuifield({php}echo get_formfield('base_goods','layui');{/php},hide_field);//设置隐藏字段信息
    var ztree_data={php}array_unshift($goodsclass,['id'=>0,'pid'=>0,'name'=>'全部分类','open'=>'true']);echo json_encode(array_field($goodsclass,['id','pid','name','open']));{/php};
</script>
<script src="/skin/js/public/ztree.js" type="text/javascript" charset="utf-8"></script>
<script src="/skin/js/public/selectpage.js" type="text/javascript" charset="utf-8"></script>
<script src="/skin/js/main/base_goods.js" type="text/javascript" charset="utf-8"></script>
{/block}